package com.yu.crm.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 预警类型表
 * </p>
 *
 * @author pan
 * @since 2020-06-29
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CrmEarlyWarningType implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id", required = false)
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    @ApiModelProperty("类型名称")
    @TableField("early_warning_type_name")
    private String earlyWarningTypeName;

    @ApiModelProperty("描述备注")
    @TableField("early_warning_description")
    private String earlyWarningDescription;

    @ApiModelProperty("创建者ID")
    @TableField("create_user_id")
    private String createUserId;


    @ApiModelProperty(value = "类型 短信、微信、电话、广播")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "创建时间", required = false)
    @TableField("gmt_create")
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "修改时间", required = false)
    @TableField("gmt_modified")
    private LocalDateTime gmtModified;

    @ApiModelProperty(value = "是否已删除 yes_no", required = false)
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;



    @ApiModelProperty(value = "类型参数设置")
    @TableField(exist = false)
    private CrmEarlyWarningTypeParam typeParam;
}
